package cn.xiaopengstack.infrastructure.persistent.dao;

import cn.xiaopengstack.infrastructure.persistent.po.Sku;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author jiangyangang
* @description 针对表【sku(商品信息)】的数据库操作Mapper
* @createDate 2025-10-10 17:14:11
* @Entity cn.xiaopengstack.infrastructure.persistent.po.Sku
*/
@Mapper
public interface SkuDao {

    int insertSelective(Sku record);

    Sku selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Sku record);

    /**
     * 查询商品详情
     * @param goodsId
     * @return
     */
    Sku querySkuByGoodsId(@Param("goodsId") String goodsId);
}
